package com.vast.system.common;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class Enviroments {

    public static boolean isProd = true;

    public static String profile = "zfw";

    @Value("${spring.profiles:default}")
    public void setProfile(String profile) {
        Enviroments.profile = profile;
        Enviroments.isProd = "zfw".equals(profile);
    }

}
